package cn.iocoder.yudao.module.shop.controller.admin.appointment.vo;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;

@Schema(description = "管理后台 - 店内可预约时间 req VO")
@Data
public class AppointmentValidateReqVO {
    @Schema(description = "预约日期")
    @NotNull(message = "预约日期不能为空")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDateTime dateTime;

    @Schema(description = "店铺Id")
    @NotNull(message = "店铺id不能为空·")
    private Long tenantId;
}
